package com.elegantmall.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("orders")

public class OrderPojo {
    @TableId(value = "order_id" , type = IdType.ASSIGN_ID)//自动分配
    private String orderId;


    @TableField("goods_id")
    private String goodsId;

    @TableField("seller_name")
    private String sellerName;

    @TableField("number")//库存
    private int number;

    @TableField("create_time")
    private Date createTime;

}
